﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000641 RID: 1601
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class GetAllServerPrefsDataScRsp : IMessage<GetAllServerPrefsDataScRsp>, IMessage, IEquatable<GetAllServerPrefsDataScRsp>, IDeepCloneable<GetAllServerPrefsDataScRsp>, IBufferMessage
	{
		// Token: 0x170014B6 RID: 5302
		// (get) Token: 0x06004848 RID: 18504 RVA: 0x000C711F File Offset: 0x000C531F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<GetAllServerPrefsDataScRsp> Parser
		{
			get
			{
				return GetAllServerPrefsDataScRsp._parser;
			}
		}

		// Token: 0x170014B7 RID: 5303
		// (get) Token: 0x06004849 RID: 18505 RVA: 0x000C7126 File Offset: 0x000C5326
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return GetAllServerPrefsDataScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170014B8 RID: 5304
		// (get) Token: 0x0600484A RID: 18506 RVA: 0x000C7138 File Offset: 0x000C5338
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return GetAllServerPrefsDataScRsp.Descriptor;
			}
		}

		// Token: 0x0600484B RID: 18507 RVA: 0x000C713F File Offset: 0x000C533F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetAllServerPrefsDataScRsp()
		{
		}

		// Token: 0x0600484C RID: 18508 RVA: 0x000C7152 File Offset: 0x000C5352
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetAllServerPrefsDataScRsp(GetAllServerPrefsDataScRsp other) : this()
		{
			this.retcode_ = other.retcode_;
			this.serverPrefsList_ = other.serverPrefsList_.Clone();
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600484D RID: 18509 RVA: 0x000C7188 File Offset: 0x000C5388
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public GetAllServerPrefsDataScRsp Clone()
		{
			return new GetAllServerPrefsDataScRsp(this);
		}

		// Token: 0x170014B9 RID: 5305
		// (get) Token: 0x0600484E RID: 18510 RVA: 0x000C7190 File Offset: 0x000C5390
		// (set) Token: 0x0600484F RID: 18511 RVA: 0x000C7198 File Offset: 0x000C5398
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x170014BA RID: 5306
		// (get) Token: 0x06004850 RID: 18512 RVA: 0x000C71A1 File Offset: 0x000C53A1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<ServerPrefs> ServerPrefsList
		{
			get
			{
				return this.serverPrefsList_;
			}
		}

		// Token: 0x06004851 RID: 18513 RVA: 0x000C71A9 File Offset: 0x000C53A9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as GetAllServerPrefsDataScRsp);
		}

		// Token: 0x06004852 RID: 18514 RVA: 0x000C71B8 File Offset: 0x000C53B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(GetAllServerPrefsDataScRsp other)
		{
			return other != null && (other == this || (this.Retcode == other.Retcode && this.serverPrefsList_.Equals(other.serverPrefsList_) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06004853 RID: 18515 RVA: 0x000C7208 File Offset: 0x000C5408
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			num ^= this.serverPrefsList_.GetHashCode();
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06004854 RID: 18516 RVA: 0x000C7255 File Offset: 0x000C5455
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06004855 RID: 18517 RVA: 0x000C725D File Offset: 0x000C545D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06004856 RID: 18518 RVA: 0x000C7268 File Offset: 0x000C5468
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Retcode);
			}
			this.serverPrefsList_.WriteTo(ref output, GetAllServerPrefsDataScRsp._repeated_serverPrefsList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06004857 RID: 18519 RVA: 0x000C72B8 File Offset: 0x000C54B8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			num += this.serverPrefsList_.CalculateSize(GetAllServerPrefsDataScRsp._repeated_serverPrefsList_codec);
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06004858 RID: 18520 RVA: 0x000C730C File Offset: 0x000C550C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(GetAllServerPrefsDataScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this.serverPrefsList_.Add(other.serverPrefsList_);
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06004859 RID: 18521 RVA: 0x000C7359 File Offset: 0x000C5559
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600485A RID: 18522 RVA: 0x000C7364 File Offset: 0x000C5564
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 16U)
				{
					if (num != 34U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.serverPrefsList_.AddEntriesFrom(ref input, GetAllServerPrefsDataScRsp._repeated_serverPrefsList_codec);
					}
				}
				else
				{
					this.Retcode = input.ReadUInt32();
				}
			}
		}

		// Token: 0x04001CBB RID: 7355
		private static readonly MessageParser<GetAllServerPrefsDataScRsp> _parser = new MessageParser<GetAllServerPrefsDataScRsp>(() => new GetAllServerPrefsDataScRsp());

		// Token: 0x04001CBC RID: 7356
		private UnknownFieldSet _unknownFields;

		// Token: 0x04001CBD RID: 7357
		public const int RetcodeFieldNumber = 2;

		// Token: 0x04001CBE RID: 7358
		private uint retcode_;

		// Token: 0x04001CBF RID: 7359
		public const int ServerPrefsListFieldNumber = 4;

		// Token: 0x04001CC0 RID: 7360
		private static readonly FieldCodec<ServerPrefs> _repeated_serverPrefsList_codec = FieldCodec.ForMessage<ServerPrefs>(34U, ServerPrefs.Parser);

		// Token: 0x04001CC1 RID: 7361
		private readonly RepeatedField<ServerPrefs> serverPrefsList_ = new RepeatedField<ServerPrefs>();
	}
}
